/**
 * 广寒宫
 * 网址:www.guanghangong.xyz
 */
package com.moon.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.moon.admin.framework.mybatisplus.entity.Entity;


/**
 * 行政区划 实体
 *
 * @author moon
 */
@Getter
@Setter
@ToString
@ApiModel(value = "行政区划 实体")
@TableName("sys_region")
public class SysRegionEntity extends Entity{

    @TableId(type=IdType.AUTO,value = "id")
    private Integer id;

    @ApiModelProperty(value = "区划编号")

    private String code;

    @ApiModelProperty(value = "区划名称")
    private String name;

    @ApiModelProperty(value = "父区划编号")
    private String parentCode;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "经纬度")
    private String lnglat;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "父区划名称",hidden = true)
    private String parentName;
}